package BlockingQueueDemo;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

/**
 * @author caihe
 * @date 2021/6/30 9:34
 */
public class MyMain {

    public static void main(String[] args) {
        BlockingQueue<String> blockingQueue = new ArrayBlockingQueue<>(4);
        new Thread(new MyProducer(blockingQueue)).start();
        new Thread(new MyConsumer(blockingQueue)).start();
        
    }
}
